package si.ibloc.cms.home;

import java.util.Arrays;
import java.util.List;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import si.ibloc.cms.model.User;

@Name("userList")
public class UserList extends EntityQuery {

	private static final String[] RESTRICTIONS = {};

	private User user = new User();

	@Override
	public String getEjbql() {
		return "select user from User user";
	}

	@Override
	public Integer getMaxResults() {
		return 25;
	}

	public User getUser() {
		return user;
	}

	@Override
	public List<String> getRestrictions() {
		return Arrays.asList(RESTRICTIONS);
	}

}
